package eCheque;

/**
 * Simple object used for displaying {@link EChequeRegisteration} objects in a
 * list.
 * 
 * @author Steve Pennington
 * 
 */
public class AccountMenuItem {
	private EChequeRegisteration account;

	public AccountMenuItem(EChequeRegisteration account) {
		this.account = account;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return account.getAccountNumber();
	}

	public EChequeRegisteration getAccount() {
		return account;
	}
}
